package com.engine4cloud.tdf.education.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.education.dto.EduCourseResourcePushDTO;
import com.engine4cloud.tdf.education.dto.query.EduStudentTaskAppQueryDTO;
import com.engine4cloud.tdf.education.dto.result.EduStudyTaskResultDTO;
import com.engine4cloud.tdf.education.entity.EduStudyTaskEntity;

import java.util.List;

public interface EduStudyTaskService extends IService<EduStudyTaskEntity> {

    PageInfo<EduStudyTaskResultDTO> pageList(EduStudentTaskAppQueryDTO dto);


    EduStudyTaskResultDTO getById(Long id);

    List<EduStudyTaskResultDTO> findList(String courseCode, List<String> groupCodeList, List<String> resourceCodeList);

    Boolean createBatch(String code, List<String> groupList, List<String> resourceList);

    Boolean createBatch(EduCourseResourcePushDTO dto, List<String> resourceList);

    EduStudyTaskResultDTO findByCode(String code);
}